﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MDI.Master" AutoEventWireup="true" CodeBehind="frmCotizacion.aspx.cs" Inherits="CapaPresentacion.frmCotizacion" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cuerpo" runat="server">
    <div class="row">
        <div class="col-lg-12">
            <ol class="breadcrumb">
                <li class="active"><i class="fa fa-dashboard"></i>Cotizaciones </li>
            </ol>
        </div>
    </div>
    <div id="tabs">
        <ul>
            <li><a href="#tabs-1">Buscar Productos</a></li>
            <li><a href="#tabs-2">Guardar Cotización</a></li>
        </ul>
        <div id="tabs-1">
            <div class="form-group input-group col-lg-4">
            <select class="form-control" id="almacen">
                                <%--Aquí va Ajax + JSON--%>
            </select>
                </div>
            <div class="form-group input-group  col-lg-8">
                <input type="text" class="form-control" id="producto_buscar_nombre">
                <span class="input-group-btn">
                    <button id="btn_modal_buscar_productos" class="btn btn-default" type="button"><i class="fa fa-search"></i></button>
                </span>
            </div>
            <div class="table-responsive">
                <table id="tbProductosBusqueda" class="table table-bordered table-hover tablesorter">
                    <thead>
                        <tr>
                            <th>Código</th>
                            <th>Presentación</th>
                            <%--<th>Med.</th>--%>
                            <th>Precio</th>
                            <th>Linea</th>
                            <th>Stock</th>
                            <th></th>
                        </tr>
                    </thead>
                </table>
            </div>
        </div>
        <div id="tabs-2">
            <!-- /.row -->
            <div class="row">
                <%-- <div class="col-lg-12">
            <%--<div class="form-group panel-body">
                <div class="col-lg-8"></div>
                <div class="col-lg-4">                    
                    <button type="button" class="btn btn-success"><i class="fa fa-pencil"></i>Nueva Cotización </button>
                    <button type="button" class="btn btn-danger"><i class="fa fa-chain-broken"></i>Cancelar </button>
                </div>
            </div>
            <div class="form-group">--%>

                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <form role="form">
                            <div class="panel-body">
                                <div style="display:nones;">
                                    <input id="idCliente" />
                                </div>
                                <div class="form-group col-lg-1">
                                    <label>Cliente: </label>
                                </div>
                                <div class="form-group input-group  col-lg-5">
                                    <input type="text" class="form-control" name="txtRazSocialCliente" id="txtRazSocialCliente" />                                   
                                </div>
                                <div class="form-group col-lg-1">
                                    <label>DNI/RUC: </label>
                                </div>
                                <div class="form-group input-group  col-lg-3">
                                    <input type="text" class="form-control" name="txtRucDni" id="txtRucDni" />
                                </div>
                                <div class="form-group col-lg-2">
                                    <a href="frmClientes.aspx" class="btn btn-default"><i class="fa fa-user"></i>Nuevo</a>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <h3 class="panel-title"><i class="fa fa-money"></i> Detalle de Cotización</h3>
                        </div>
                        <div class="panel-body">                           
                            <div class="form-group">
                                <div class="table-responsive">
                                    <table id="tbDetalleProducto" class="table table-bordered table-hover tablesorter">
                                        <thead>
                                            <tr>
                                                <th>ID </th>
                                                <th>PRESENTACIÓN </th>
                                                <th>PRECIO </th>
                                                <th>CANTIDAD </th>
                                                <th>IMPORTE </th> 
                                                <th></th>                                              
                                            </tr>
                                        </thead>
                                    </table>
                                </div>
                                <div class="panel-body form-group">
                                    <label class="col-lg-3">Sub Total: S/. 505004.00</label>
                                    <label class="col-lg-3">Descuento: S/. 3.00</label>
                                    <label class="col-lg-3">I.G.V.: S/. 34543.00</label>
                                    <label class="col-lg-3">Total: S/. 505001.00</label>
                                </div>
                                <div class="panel panel-default">
                                    <div class="col-lg-5"></div>
                                    <div class="panel-body col-lg-6">
                                        <button type="button" class="btn btn-primary"><i class="fa fa-check"></i>Realizar Pedido </button>
                                        <button type="button" class="btn btn-warning"><i class="fa fa-print"></i>Imprimir y Guardar </button>
                                        <button type="button" class="btn btn-danger"><i class="fa fa-chain-broken"></i>Cancelar </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <%--</div>
        </div>--%>
            </div>
        </div>
    </div>
    <div id="modalCantidadProducto" class="dialog" title="Buscar Productos">
        <div class="form-group input-group">
            <label>Cantidad:</label>
            <input type="text" class="form-control" id="producto_cantidad">   
            <div style="display:none;">
                <input name="id" id="id" />
                <input name="nom" id="nom" />
                <input name="pre" id="pre" />
            </div>        
        </div>        
    </div>

    <script src="assets/js/cotizacion.js"></script>
</asp:Content>
